import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);
var descr=localStorage.city?localStorage.city:"西安"

let state={
  city:descr
}
let mutations={
    changcity(state,name){
    state.city=name;
    localStorage.city=name
  }
}
export default new Vuex.Store({
  state,
  mutations
})
